package designpattern.command;

/**
 * TODO:类描述
 *
 * @className: TurnOnCommand
 * @packageName: designpattern.command
 * @author: Zhuhj
 * @version: V1.0
 * @date: 2021/4/21 19:56
 */
public class TurnOnCommand implements  Command{
    public TV myTv;
    public TurnOnCommand(TV tv){
        this.myTv = tv;
    }

    @Override
    public void execute() {
        myTv.turnOn();
    }
}
